@extends('default.layouts.adminPublic')
@section('title', '投递简历统计列表')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/admin/indexList.css')}}">
    @endsection
    @section('content')
            <!--导航开始-->
    <div class="crumb_warp">
        <i class="fa fa-home"></i> <a href="{{url('admin/send_resume?days=1')}}">首页</a> &raquo; 投递简历统计列表
    </div>
    <!--导航结束-->
    <!--结果集标题与导航组件 开始-->
    <div class="con">
        <div class="conMain">
            <div class="result_wrap">
                <div class="smart look">
                    <ul>
                        <li class="title">访问类型：</li>
                        <li><a href="{{url('admin/send_resume?days=1')}}">1天内</a></li>
                        <li><a href="{{url('admin/send_resume?days=3')}}">3天内</a></li>
                        <li><a href="{{url('admin/send_resume?days=7')}}">7天内</a></li>
                        <li><a href="{{url('admin/send_resume?days=15')}}">半个月内</a></li>
                        <li><a href="{{url('admin/send_resume?days=30')}}">一个月内</a></li>
                        <li><a href="{{url('admin/send_resume?days=90')}}">一个季度内</a></li>
                        <li><a href="{{url('admin/send_resume?days=365')}}">一年内</a></li>
                        <li><a href="{{url('admin/send_resume')}}">全部</a></li>
                    </ul>
                    <div class="message"><p>
                            @if(!empty($appends['days']))<strong>{{$appends['days']}}</strong>天内@else总@endif共查找到<strong>{{$resumeSend->total()}}</strong>个记录！且每页显示投递简历统计记录{{$resumeSend->perPage()}} 个。
                        </p></div>
                </div>
            </div>
            <div class="manage">
                @include('flash::message')
            </div>
            <div class="conInfo">
                <form name="thisForm" id="thisForm" action="" method="post">
                    {{csrf_field()}}
                    <div class="conList" id="conList">
                        <dl class="one">
                            <dt><input name="selectall" type="checkbox" value="1" onclick="CheckAll(this)"/></dt>
                            <dd class="countsend1">姓名</dd>
                            <dd class="countsend2">用户名</dd>
                            <dd class="countsend8">手机号码</dd>
                            <dd class="countsend3">投递简历次数</dd>
                            <dd class="countsend4">最后登录时间</dd>
                            <dd class="countsend5">最后登录IP</dd>
                            <dd class="countsend6">注册时间</dd>
                            <dd class="countsend7">操作</dd>
                        </dl>
                        @if(count($resumeSend) > 0 )
                            @foreach($resumeSend as $v)
                                <dl id="list{{$v->uid}}">
                                    <dt><input name="selected_id[]" type="checkbox" value=""/></dt>
                                    <dd class="countsend1"><a href="{{url('resume_'.idEncryption($v->id).'.html')}}" target="_blank" >{{str_limit($v->name,10)}}</a></dd>
                                    <dd class="countsend2">{{str_limit($v->username,20)}}</dd>
                                    <dd class="countsend8">{{str_limit($v->mobile,11)}}</dd>
                                    <dd class="countsend3">{{$v->countResumeSend}}</dd>
                                    <dd class="countsend4">{{$v->last_login_time}}</dd>
                                    <dd class="countsend5">{{$v->last_login_ip}}</dd>
                                    <dd class="countsend6">{{$v->regtime}}</dd>
                                    <dd class="countsend7">
                                        <span><a href="{{url('admin/personal_welcome/'.$v->uid)}}" target="_blank">账户中心</a></span></dd>
                                </dl>
                            @endforeach
                        @else
                            <div class="nullcon">对不起！投递简历记录为空！</div>
                        @endif
                        <dl class="last">
                            <dt>
                                <input name="selectall" id="selectall" type="checkbox" value="1"
                                       onclick="CheckAll(this)"/>
                                <label for="selectall">全选</label>
                            </dt>
                        </dl>
                    </div>
                </form>
                <div class="page_list" style="width: 100%; float: left; margin-top:15px;">
                    {!! $resumeSend->appends($appends)->links() !!}
                </div>
            </div>

            <div class="stopper" style="margin-top:10px; border-top: 1px solid #e5e5e5"></div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@endsection

@section('footerjs')
    @parent
@endsection